/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.edu.ifal.gui;

/**
 *
 * @author Vagner
 */
public class FrmTelaPrincipal extends javax.swing.JFrame {

    /**
     * Creates new form FrmTelaPrincipal
     */
    public FrmTelaPrincipal() {
        
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel2 = new javax.swing.JPanel();
        brrFerramentas = new javax.swing.JToolBar();
        btnCaixa = new javax.swing.JButton();
        SepCaixa = new javax.swing.JToolBar.Separator();
        btnContaPagar = new javax.swing.JButton();
        SepContaPagar = new javax.swing.JToolBar.Separator();
        btnEstoque = new javax.swing.JButton();
        SepEstoque = new javax.swing.JToolBar.Separator();
        lblImagemPrincipal = new javax.swing.JLabel();
        mnIniciar = new javax.swing.JMenuBar();
        mnArquivos = new javax.swing.JMenu();
        mnAjuda = new javax.swing.JMenuItem();
        SepAjuda = new javax.swing.JPopupMenu.Separator();
        mnSair = new javax.swing.JMenuItem();
        mnCadastoCliente = new javax.swing.JMenu();
        mnCadastroFuncionario = new javax.swing.JMenuItem();
        SepFuncionario = new javax.swing.JPopupMenu.Separator();
        mnCadastroCliente = new javax.swing.JMenuItem();
        SepCliente = new javax.swing.JPopupMenu.Separator();
        mnCadastroProduto = new javax.swing.JMenuItem();
        SepProduto = new javax.swing.JPopupMenu.Separator();
        mnCadastroFornecedores = new javax.swing.JMenuItem();

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("SistSuper - TelaPrincipal");

        brrFerramentas.setBackground(new java.awt.Color(255, 255, 255));
        brrFerramentas.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        brrFerramentas.setRollover(true);

        btnCaixa.setBackground(new java.awt.Color(255, 255, 255));
        btnCaixa.setText("Caixa");
        btnCaixa.setFocusable(false);
        btnCaixa.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnCaixa.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnCaixa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCaixaActionPerformed(evt);
            }
        });
        brrFerramentas.add(btnCaixa);
        brrFerramentas.add(SepCaixa);

        btnContaPagar.setBackground(new java.awt.Color(255, 255, 255));
        btnContaPagar.setText("Conta a Pagar");
        btnContaPagar.setFocusable(false);
        btnContaPagar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnContaPagar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnContaPagar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnContaPagarActionPerformed(evt);
            }
        });
        brrFerramentas.add(btnContaPagar);
        brrFerramentas.add(SepContaPagar);

        btnEstoque.setBackground(new java.awt.Color(255, 255, 255));
        btnEstoque.setText("Estoques");
        btnEstoque.setFocusable(false);
        btnEstoque.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnEstoque.setPreferredSize(new java.awt.Dimension(80, 100));
        btnEstoque.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnEstoque.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEstoqueActionPerformed(evt);
            }
        });
        brrFerramentas.add(btnEstoque);
        brrFerramentas.add(SepEstoque);

        mnIniciar.setBackground(new java.awt.Color(255, 255, 255));
        mnIniciar.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        mnIniciar.setForeground(new java.awt.Color(0, 0, 204));
        mnIniciar.setBorderPainted(false);
        mnIniciar.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        mnIniciar.setPreferredSize(new java.awt.Dimension(110, 35));

        mnArquivos.setText("Arquivos");
        mnArquivos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnArquivosActionPerformed(evt);
            }
        });

        mnAjuda.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.SHIFT_MASK));
        mnAjuda.setBackground(new java.awt.Color(255, 255, 255));
        mnAjuda.setText("Ajuda");
        mnAjuda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnAjudaActionPerformed(evt);
            }
        });
        mnArquivos.add(mnAjuda);
        mnArquivos.add(SepAjuda);

        mnSair.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK));
        mnSair.setBackground(new java.awt.Color(255, 255, 255));
        mnSair.setText("Sair");
        mnSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnSairActionPerformed(evt);
            }
        });
        mnArquivos.add(mnSair);

        mnIniciar.add(mnArquivos);

        mnCadastoCliente.setText("Cadastro");
        mnCadastoCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnCadastoClienteActionPerformed(evt);
            }
        });

        mnCadastroFuncionario.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.SHIFT_MASK));
        mnCadastroFuncionario.setBackground(new java.awt.Color(255, 255, 255));
        mnCadastroFuncionario.setText("Cadastro Funcionario");
        mnCadastroFuncionario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnCadastroFuncionarioActionPerformed(evt);
            }
        });
        mnCadastoCliente.add(mnCadastroFuncionario);
        mnCadastoCliente.add(SepFuncionario);

        mnCadastroCliente.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.SHIFT_MASK));
        mnCadastroCliente.setBackground(new java.awt.Color(255, 255, 255));
        mnCadastroCliente.setText("Cadastro Cliente");
        mnCadastroCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnCadastroClienteActionPerformed(evt);
            }
        });
        mnCadastoCliente.add(mnCadastroCliente);
        mnCadastoCliente.add(SepCliente);

        mnCadastroProduto.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.SHIFT_MASK));
        mnCadastroProduto.setBackground(new java.awt.Color(255, 255, 255));
        mnCadastroProduto.setText("Cadastro Produto");
        mnCadastroProduto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnCadastroProdutoActionPerformed(evt);
            }
        });
        mnCadastoCliente.add(mnCadastroProduto);
        mnCadastoCliente.add(SepProduto);

        mnCadastroFornecedores.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.SHIFT_MASK));
        mnCadastroFornecedores.setBackground(new java.awt.Color(255, 255, 255));
        mnCadastroFornecedores.setText("Cadastro Fornecedores");
        mnCadastroFornecedores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnCadastroFornecedoresActionPerformed(evt);
            }
        });
        mnCadastoCliente.add(mnCadastroFornecedores);

        mnIniciar.add(mnCadastoCliente);

        setJMenuBar(mnIniciar);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(brrFerramentas, javax.swing.GroupLayout.DEFAULT_SIZE, 608, Short.MAX_VALUE)
            .addComponent(lblImagemPrincipal)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(0, 0, 0)
                .addComponent(brrFerramentas, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(lblImagemPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, 331, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void mnCadastroFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnCadastroFuncionarioActionPerformed
        // TODO add your handling code here:
        FrmCadFuncionario frmCad = new FrmCadFuncionario();
        frmCad.setDefaultCloseOperation(HIDE_ON_CLOSE);
        frmCad.setVisible(true);
    }//GEN-LAST:event_mnCadastroFuncionarioActionPerformed

    private void mnArquivosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnArquivosActionPerformed
        // TODO add your handling code here:
        FrmAjuda frm = new FrmAjuda();
        frm.setDefaultCloseOperation(HIDE_ON_CLOSE);
        frm.setVisible(true);
    }//GEN-LAST:event_mnArquivosActionPerformed

    private void btnCaixaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCaixaActionPerformed
        // TODO add your handling code here:
        FrmCaixa frm = new FrmCaixa();
        frm.setDefaultCloseOperation(HIDE_ON_CLOSE);
        frm.setVisible(true);
    }//GEN-LAST:event_btnCaixaActionPerformed

    private void btnContaPagarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnContaPagarActionPerformed
        // TODO add your handling code here:
        FrmContaPagar frm = new FrmContaPagar();
        frm.setDefaultCloseOperation(HIDE_ON_CLOSE);
        frm.setVisible(true);
    }//GEN-LAST:event_btnContaPagarActionPerformed

    private void btnEstoqueActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEstoqueActionPerformed
        // TODO add your handling code here:
        FrmEstoque frm = new FrmEstoque();
        frm.setDefaultCloseOperation(HIDE_ON_CLOSE);
        frm.setVisible(true);
    }//GEN-LAST:event_btnEstoqueActionPerformed

    private void mnCadastroClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnCadastroClienteActionPerformed
        // TODO add your handling code here:
        FrmCadCliente frmCad = new FrmCadCliente();
        frmCad.setDefaultCloseOperation(HIDE_ON_CLOSE);
        frmCad.setVisible(true);
    }//GEN-LAST:event_mnCadastroClienteActionPerformed

    private void mnCadastroProdutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnCadastroProdutoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_mnCadastroProdutoActionPerformed

    private void mnCadastroFornecedoresActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnCadastroFornecedoresActionPerformed
        // TODO add your handling code here:
        FrmCadFornecedores frm = new FrmCadFornecedores();
        frm.setDefaultCloseOperation(HIDE_ON_CLOSE);
        frm.setVisible(true);
    }//GEN-LAST:event_mnCadastroFornecedoresActionPerformed

    private void mnCadastoClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnCadastoClienteActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_mnCadastoClienteActionPerformed

    private void mnAjudaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnAjudaActionPerformed
        // TODO add your handling code here:
         FrmAjuda frm = new FrmAjuda();
        frm.setDefaultCloseOperation(HIDE_ON_CLOSE);
        frm.setVisible(true);
    }//GEN-LAST:event_mnAjudaActionPerformed

    private void mnSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnSairActionPerformed
        // TODO add your handling code here:
        this.dispose();
    }//GEN-LAST:event_mnSairActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(FrmTelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FrmTelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FrmTelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FrmTelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                 new FrmLogin().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPopupMenu.Separator SepAjuda;
    private javax.swing.JToolBar.Separator SepCaixa;
    private javax.swing.JPopupMenu.Separator SepCliente;
    private javax.swing.JToolBar.Separator SepContaPagar;
    private javax.swing.JToolBar.Separator SepEstoque;
    private javax.swing.JPopupMenu.Separator SepFuncionario;
    private javax.swing.JPopupMenu.Separator SepProduto;
    private javax.swing.JToolBar brrFerramentas;
    private javax.swing.JButton btnCaixa;
    private javax.swing.JButton btnContaPagar;
    private javax.swing.JButton btnEstoque;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JLabel lblImagemPrincipal;
    private javax.swing.JMenuItem mnAjuda;
    private javax.swing.JMenu mnArquivos;
    private javax.swing.JMenu mnCadastoCliente;
    private javax.swing.JMenuItem mnCadastroCliente;
    private javax.swing.JMenuItem mnCadastroFornecedores;
    private javax.swing.JMenuItem mnCadastroFuncionario;
    private javax.swing.JMenuItem mnCadastroProduto;
    private javax.swing.JMenuBar mnIniciar;
    private javax.swing.JMenuItem mnSair;
    // End of variables declaration//GEN-END:variables
}
